////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   COMPANY
// AUTHOR           :   Victor Zheng 
// DATE CREATE      :   2006/02/01
// DESCRIPTION      :   a CRITERIA file for the function, COMPANY
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/02/01   Victor Zheng    1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.admin.companySetup.criteria;

import com.erp.framework.model.criteria.SimpleSearchMaintStyleSrchCriteria;

/**
* <p>A <strong>SrchCriteria</strong>
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the user search criteria input
* for database query.
*
* @author          Victor Zheng 
* @version 1.0     2006/02/01
* @since           FrameWork 1.0
*
*/

// Note:
// Currently only generates the first 5 fields of a table
// However, this number can be set in GenConstants.NO_CRITERIA

public class CompanySrchCriteria extends SimpleSearchMaintStyleSrchCriteria {

	//Searching Criteria Attributes (DB Table Name: T_COMPANY)
	private String srchCompanyCode;                  //DB Column Name: COMPANY_CODE
	private String srchShortNameFr;                  //DB Column Name: SHORT_NAME
	private String srchShortNameTo;                  //DB Column Name: SHORT_NAME
	private String srchLongNameFr;                   //DB Column Name: LONG_NAME
	private String srchLongNameTo;                   //DB Column Name: LONG_NAME

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	public String toString() {

		String colStr = "COL: {srchShortNameFr = " + this.srchShortNameFr
			+ "\n, srchShortNameTo = " + this.srchShortNameTo
			+ "\n, srchLongNameFr = " + this.srchLongNameFr
			+ "\n, srchLongNameTo = " + this.srchLongNameTo
			+ "}\n";

		String mandatoryStr = "{srchCompanyCode = " + this.srchCompanyCode
			+ "}\n";

		return "toString() is:\n" + mandatoryStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for searching criterias
	////////////////////////////////////////////////////////////////////////////////

	public String getSrchCompanyCode() {
		return this.srchCompanyCode;
	}

	public String getSrchShortNameFr() {
		return this.srchShortNameFr;
	}

	public String getSrchShortNameTo() {
		return this.srchShortNameTo;
	}

	public String getSrchLongNameFr() {
		return this.srchLongNameFr;
	}

	public String getSrchLongNameTo() {
		return this.srchLongNameTo;
	}

	public void setSrchCompanyCode(String srchCompanyCode) {
		this.srchCompanyCode = srchCompanyCode;
	}

	public void setSrchShortNameFr(String srchShortNameFr) {
		this.srchShortNameFr = srchShortNameFr;
	}

	public void setSrchShortNameTo(String srchShortNameTo) {
		this.srchShortNameTo = srchShortNameTo;
	}

	public void setSrchLongNameFr(String srchLongNameFr) {
		this.srchLongNameFr = srchLongNameFr;
	}

	public void setSrchLongNameTo(String srchLongNameTo) {
		this.srchLongNameTo = srchLongNameTo;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}
